import request from '@/utils/request.js'
import apis from '@/utils/api'
/**
 * @param {Object} params
 * 公共api
 */
export function publicApi(params) {
    return request.globalRequest(apis.publicApi, 'POST', params)
}
export function changeDate(params) {
		let p = JSON.parse(params.params)
		if(p.invoice_date){
			return request.globalRequest(apis.invoiceDate, 'POST', params)			
		}
		if(p.pay_date){
			return request.globalRequest(apis.payDate, 'POST', params)			
		}
}

export default {
	publicApi,
	changeDate
}